//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
  },
  onLoad: function () {
    // 执行动画：
    this.anim();

  },
  routertoIndex:()=>{
    wx.switchTab({
      url: '../../index/index',
    })
  },
  anim:function(){
    var animation=wx.createAnimation({
      duration:1000,
      timingFunction:'ease',
    });
    animation.opacity(1).translate(0).step();
    this.setData({
      global_ani: animation.export()
    })
  },

})
